import React from 'react';
import { Route } from 'react-router-dom';
// import asyncComponent from './../asyncComponent.js'
// const Home = asyncComponent(() => import('./../../components/home/home.js'))
import Home from './../../components/home/home.js'
// const WeatherWeek = asyncComponent(() => import('./../../components/week/week_weather.js'))
// const WeatherWeek = () => import()
import WeatherWeek from './../../components/week/week_weather.js'

export default (
    <div>
        <Route exact path="/" component={Home} />
        <Route path='/week' component={WeatherWeek}/>
    </div>
)
